package Test;

public class Person {
    String name;

    int age;

    String gender;


    public void study(){

        System.out.println("studying");
    }
    public void showAge(){

        System.out.println("当前年纪为:" + age);
    }

    public void addAge(int ageParam){
        //成员变量 = 成员变量 + 局部变量

        age = age + ageParam;

        System.out.println("添加的年纪为" + ageParam);

    }
}

